package com.team.dutchboy;

import com.alibaba.cloud.seata.feign.SeataFeignClientAutoConfiguration;
import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = {SeataFeignClientAutoConfiguration.class})  //解决sleuth,seata,sentinel bean冲突问题 禁用feign的自动配置，采用拦截器代替
@EnableDiscoveryClient
@EnableFeignClients
@MapperScan("com.team.dutchboy.mapper")
@EnableAutoDataSourceProxy
@Slf4j
public class DutchboyApplication {

    public static void main(String[] args) {
        SpringApplication.run(DutchboyApplication.class);
        log.info("dutchboy应用已启动");
    }
}
